#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Core;
using Cephei.Core.Generic;
using Microsoft.FSharp.Core;
using Cephei.QL.Math;
namespace Cephei.QL.Math.Optimization
{
    /// <summary> 
	/// ! Implements a cost function using the interface provided by the LeastSquareProblem class.
	/// </summary>
    [Guid ("32F6D8BB-05AE-44c8-8546-F8BE872660C7"),ComVisible(true)]
	public interface ILeastSquareFunction : Cephei.QL.Math.Optimization.ICostFunction
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        /// <summary> 
		/// 
		/// </summary>
		 ILeastSquareFunction Gradient(Cephei.QL.Math.IArray grad_f, Cephei.QL.Math.IArray x);
        /// <summary> 
		/// 
		/// </summary>
		 Double Value(Cephei.QL.Math.IArray x);
        /// <summary> 
		/// 
		/// </summary>
		 Double ValueAndGradient(Cephei.QL.Math.IArray grad_f, Cephei.QL.Math.IArray x);
    }   

    /// <summary> 
	/// ! Implements a cost function using the interface provided by the LeastSquareProblem class. Factory
	/// </summary>
   	[ComVisible(true)]
    public interface ILeastSquareFunction_Factory 
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        /// <summary> 
		/// 
		/// </summary>
	    ILeastSquareFunction Create (Cephei.QL.Math.Optimization.ILeastSquareProblem lsp);
    }
}

